<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('代理商图片信息列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label style="width: 100px;">渠道返回信息：</label>
                                <input type="text" name="channelResponse"/>
                            </li>
                            <li>
                                <label style="width: 100px;">非法人身份证国徽面：</label>
                                <input type="text" name="settleIdCardBackPic"/>
                            </li>
                            <li>
                                <label style="width: 100px;">经营场所所有权或者租赁协议：</label>
                                <input type="text" name="shopPlaceRightCertifyFile"/>
                            </li>
                            <li>
                                <label style="width: 100px;">经营场所门头照：</label>
                                <input type="text" name="shopOuterPic"/>
                            </li>
                            <li>
                                <label style="width: 100px;">经营场所室内照片：</label>
                                <input type="text" name="shopInnerPic"/>
                            </li>
                            <li>
                                <label style="width: 100px;">BD 和代理商合影：</label>
                                <input type="text" name="bdagentPic"/>
                            </li>
                            <li>
                                <label style="width: 100px;">开户许可证/企业账户截图：</label>
                                <input type="text" name="publicAccountPic"/>
                            </li>
                            <li>
                                <label style="width: 100px;">合作协议原件：</label>
                                <input type="text" name="newAgentProtocolPic"/>
                            </li>
                            <li>
                                <label style="width: 100px;">非法人结算授权函：</label>
                                <input type="text" name="settleAuthLetterPic"/>
                            </li>
                            <li>
                                <label style="width: 100px;">营业执照复印件：</label>
                                <input type="text" name="businessLicensePic"/>
                            </li>
                            <li>
                                <label style="width: 100px;">结算对象银行卡正面照片：</label>
                                <input type="text" name="settleBankCardFrontPic"/>
                            </li>
                            <li>
                                <label style="width: 100px;">非法人身份证人像面：</label>
                                <input type="text" name="settleIdCardFrontPic"/>
                            </li>
                            <li>
                                <label style="width: 100px;">身份证国徽面：</label>
                                <input type="text" name="idCardBackPic"/>
                            </li>
                            <li>
                                <label style="width: 100px;">身份证人像面：</label>
                                <input type="text" name="idCardFrontPic"/>
                            </li>
                            <li>
                                <label style="width: 100px;">代理商编号：</label>
                                <input type="text" name="agentId"/>
                            </li>
                            <li>
                                <label style="width: 10px;"></label>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="channel:picturesInfo:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="channel:picturesInfo:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="channel:picturesInfo:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="channel:picturesInfo:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table" class="table text-nowrap"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('channel:picturesInfo:edit')}]];
        var removeFlag = [[${@permission.hasPermi('channel:picturesInfo:remove')}]];
        var prefix = ctx + "channel/picturesInfo";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "代理商图片信息",
                firstLoad:false,
                clickToSelect:true,
                columns: [{
                    checkbox: true
                },
                {
                    field: 'remark',
                    title: '备注'
                },
                {
                    field: 'channelResponse',
                    title: '渠道返回信息'
                },
                {
                    field: 'settleIdCardBackPic',
                    title: '非法人身份证国徽面'
                },
                {
                    field: 'shopPlaceRightCertifyFile',
                    title: '经营场所所有权或者租赁协议'
                },
                {
                    field: 'shopOuterPic',
                    title: '经营场所门头照'
                },
                {
                    field: 'shopInnerPic',
                    title: '经营场所室内照片'
                },
                {
                    field: 'bdagentPic',
                    title: 'BD 和代理商合影'
                },
                {
                    field: 'publicAccountPic',
                    title: '开户许可证/企业账户截图'
                },
                {
                    field: 'newAgentProtocolPic',
                    title: '合作协议原件'
                },
                {
                    field: 'settleAuthLetterPic',
                    title: '非法人结算授权函'
                },
                {
                    field: 'businessLicensePic',
                    title: '营业执照复印件'
                },
                {
                    field: 'settleBankCardFrontPic',
                    title: '结算对象银行卡正面照片'
                },
                {
                    field: 'settleIdCardFrontPic',
                    title: '非法人身份证人像面'
                },
                {
                    field: 'idCardBackPic',
                    title: '身份证国徽面'
                },
                {
                    field: 'idCardFrontPic',
                    title: '身份证人像面'
                },
                {
                    field: 'id',
                    title: '主键ID',
                    visible: false
                },
                {
                    field: 'agentId',
                    title: '代理商编号'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>